package Adventure;

public class Trap extends GameObject
{
	private boolean deadly = false;
	private int trapDamage = 0;
	private String lore = "";
	
	public Trap(String _name, boolean _equip, boolean _deadly, int _damage, String _lore) 
	{
		super(_name, _equip);
		deadly = _deadly;
		trapDamage = _damage;
		lore = _lore;
	}
	
	public boolean isDeadly()
	{
		return deadly;
	}
	
	public void activateTrap()
	{
		deadly = true;
	}
	
	public int getTrapDamage()
	{
		return trapDamage;
	}
	
	public void setTrapDamage(int _damage)
	{
		trapDamage = _damage;
	}
	
	public void printTrapLore()
	{
		System.out.println(lore);
		System.out.println();
	}
	
	public void editTrapLore(String _lore)
	{
		lore = _lore;
	}

}
